<?php
class Zendvn_View_Helper_CmsSeo extends Zend_View_Helper_Abstract{
	
	public function cmsSeo($name){
		$filter = new Zend_Filter();
		$multiFilter = $filter->addFilter(new Zend_Filter_StringToLower(array('encoding'=>'UTF-8')))
							 ->addFilter(new Zend_Filter_Alnum(true))
							  ->addFilter(new Zendvn_Filter_RemoveCircumflex())
							 ->addFilter(new Zend_Filter_PregReplace(array('match'=>'#\s+#','replace'=>'-')))
							 ->addFilter(new Zend_Filter_Word_SeparatorToDash());
		$xhtml = $multiFilter->filter(trim($name));
		return $xhtml;
	}
}